package com.hakim.wfb.customer.enums;

/**
 * Created by walkman on 2017/7/6.
 */
public enum TradePasswordStatusEnum {

    SET_NOT(1, "未设置"),
    SET(2, "已设置"),;

    private Integer code;
    private String value;
//    private String bundleKey;

    TradePasswordStatusEnum() {
    }

    TradePasswordStatusEnum(Integer code, String value/*, String bundleKey*/) {
        this.code = code;
        this.value = value;
//        this.bundleKey = bundleKey;
    }

    public static TradePasswordStatusEnum getByCode(Integer code) {
        for (TradePasswordStatusEnum type : values()) {
            if (type.getCode().equals(code)) {
                return type;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

//    public String getBundleKey() {
//        return bundleKey;
//    }

}